import java.awt.event.ActionEvent;

import javax.swing.JButton;


public abstract class Modifier extends RandomEvent {

	protected int  duration;

	public  Modifier(MainCardPanel display, Party p) {
		super(display, p);
	}

	@Override
	public void decay() {
		if (dead)
			return;
		super.decay();
		duration--;
		if (duration<=0)
			dead = true;
		return;

	}
	
	public void actionPerformed(ActionEvent e)
	{
		super.actionPerformed(e);
	}

}
